package cn.javass.dp.decorator.example1;


/**
 * 装饰器的具体实现对象，向组件对象添加职责
 */
public class ConcreteADecoratorB extends Decorator {

    public ConcreteADecoratorB(Component component) {
        super(component);
    }

    private void addedBehavior() {
        //需要添加职责的实现
    }

    @Override
    public void operation() {
        super.operation();
        addedBehavior();
    }
}
